package com.college.collegeinfomanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.college.collegeinfomanage.dto.UserDTO;
import com.college.collegeinfomanage.entity.User;
import com.college.collegeinfomanage.vo.UserVO;

public interface UserService extends IService<User> {

    /**
     * 注册
     * @param user
     * @return
     */
    void register(User user);

    /**
     * 登录
     * @param user
     * @return
     */
    UserVO login(User user);

    /**
     * 分页查询
     * @param userDTO
     * @return
     */
    IPage<User> getPage(UserDTO userDTO);
}
